/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.caresms.model;

import com.liferay.portal.model.ModelWrapper;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * This class is a wrapper for {@link Sms_Master}.
 * </p>
 *
 * @author    cc
 * @see       Sms_Master
 * @generated
 */
public class Sms_MasterWrapper implements Sms_Master, ModelWrapper<Sms_Master> {
	public Sms_MasterWrapper(Sms_Master sms_Master) {
		_sms_Master = sms_Master;
	}

	public Class<?> getModelClass() {
		return Sms_Master.class;
	}

	public String getModelClassName() {
		return Sms_Master.class.getName();
	}

	public Map<String, Object> getModelAttributes() {
		Map<String, Object> attributes = new HashMap<String, Object>();

		attributes.put("SmsId", getSmsId());
		attributes.put("companyId", getCompanyId());
		attributes.put("userId", getUserId());
		attributes.put("SmsContent", getSmsContent());
		attributes.put("createDate", getCreateDate());
		attributes.put("Approved_By", getApproved_By());
		attributes.put("isActive", getIsActive());
		attributes.put("Sms_chars_Size", getSms_chars_Size());
		attributes.put("field1", getField1());
		attributes.put("field2", getField2());
		attributes.put("field3", getField3());
		attributes.put("field4", getField4());
		attributes.put("field5", getField5());

		return attributes;
	}

	public void setModelAttributes(Map<String, Object> attributes) {
		Long SmsId = (Long)attributes.get("SmsId");

		if (SmsId != null) {
			setSmsId(SmsId);
		}

		Long companyId = (Long)attributes.get("companyId");

		if (companyId != null) {
			setCompanyId(companyId);
		}

		Long userId = (Long)attributes.get("userId");

		if (userId != null) {
			setUserId(userId);
		}

		String SmsContent = (String)attributes.get("SmsContent");

		if (SmsContent != null) {
			setSmsContent(SmsContent);
		}

		Date createDate = (Date)attributes.get("createDate");

		if (createDate != null) {
			setCreateDate(createDate);
		}

		Long Approved_By = (Long)attributes.get("Approved_By");

		if (Approved_By != null) {
			setApproved_By(Approved_By);
		}

		Boolean isActive = (Boolean)attributes.get("isActive");

		if (isActive != null) {
			setIsActive(isActive);
		}

		Integer Sms_chars_Size = (Integer)attributes.get("Sms_chars_Size");

		if (Sms_chars_Size != null) {
			setSms_chars_Size(Sms_chars_Size);
		}

		String field1 = (String)attributes.get("field1");

		if (field1 != null) {
			setField1(field1);
		}

		Boolean field2 = (Boolean)attributes.get("field2");

		if (field2 != null) {
			setField2(field2);
		}

		Integer field3 = (Integer)attributes.get("field3");

		if (field3 != null) {
			setField3(field3);
		}

		Date field4 = (Date)attributes.get("field4");

		if (field4 != null) {
			setField4(field4);
		}

		String field5 = (String)attributes.get("field5");

		if (field5 != null) {
			setField5(field5);
		}
	}

	/**
	* Returns the primary key of this sms_ master.
	*
	* @return the primary key of this sms_ master
	*/
	public long getPrimaryKey() {
		return _sms_Master.getPrimaryKey();
	}

	/**
	* Sets the primary key of this sms_ master.
	*
	* @param primaryKey the primary key of this sms_ master
	*/
	public void setPrimaryKey(long primaryKey) {
		_sms_Master.setPrimaryKey(primaryKey);
	}

	/**
	* Returns the sms ID of this sms_ master.
	*
	* @return the sms ID of this sms_ master
	*/
	public long getSmsId() {
		return _sms_Master.getSmsId();
	}

	/**
	* Sets the sms ID of this sms_ master.
	*
	* @param SmsId the sms ID of this sms_ master
	*/
	public void setSmsId(long SmsId) {
		_sms_Master.setSmsId(SmsId);
	}

	/**
	* Returns the company ID of this sms_ master.
	*
	* @return the company ID of this sms_ master
	*/
	public long getCompanyId() {
		return _sms_Master.getCompanyId();
	}

	/**
	* Sets the company ID of this sms_ master.
	*
	* @param companyId the company ID of this sms_ master
	*/
	public void setCompanyId(long companyId) {
		_sms_Master.setCompanyId(companyId);
	}

	/**
	* Returns the user ID of this sms_ master.
	*
	* @return the user ID of this sms_ master
	*/
	public long getUserId() {
		return _sms_Master.getUserId();
	}

	/**
	* Sets the user ID of this sms_ master.
	*
	* @param userId the user ID of this sms_ master
	*/
	public void setUserId(long userId) {
		_sms_Master.setUserId(userId);
	}

	/**
	* Returns the user uuid of this sms_ master.
	*
	* @return the user uuid of this sms_ master
	* @throws SystemException if a system exception occurred
	*/
	public java.lang.String getUserUuid()
		throws com.liferay.portal.kernel.exception.SystemException {
		return _sms_Master.getUserUuid();
	}

	/**
	* Sets the user uuid of this sms_ master.
	*
	* @param userUuid the user uuid of this sms_ master
	*/
	public void setUserUuid(java.lang.String userUuid) {
		_sms_Master.setUserUuid(userUuid);
	}

	/**
	* Returns the sms content of this sms_ master.
	*
	* @return the sms content of this sms_ master
	*/
	public java.lang.String getSmsContent() {
		return _sms_Master.getSmsContent();
	}

	/**
	* Sets the sms content of this sms_ master.
	*
	* @param SmsContent the sms content of this sms_ master
	*/
	public void setSmsContent(java.lang.String SmsContent) {
		_sms_Master.setSmsContent(SmsContent);
	}

	/**
	* Returns the create date of this sms_ master.
	*
	* @return the create date of this sms_ master
	*/
	public java.util.Date getCreateDate() {
		return _sms_Master.getCreateDate();
	}

	/**
	* Sets the create date of this sms_ master.
	*
	* @param createDate the create date of this sms_ master
	*/
	public void setCreateDate(java.util.Date createDate) {
		_sms_Master.setCreateDate(createDate);
	}

	/**
	* Returns the approved_ by of this sms_ master.
	*
	* @return the approved_ by of this sms_ master
	*/
	public long getApproved_By() {
		return _sms_Master.getApproved_By();
	}

	/**
	* Sets the approved_ by of this sms_ master.
	*
	* @param Approved_By the approved_ by of this sms_ master
	*/
	public void setApproved_By(long Approved_By) {
		_sms_Master.setApproved_By(Approved_By);
	}

	/**
	* Returns the is active of this sms_ master.
	*
	* @return the is active of this sms_ master
	*/
	public boolean getIsActive() {
		return _sms_Master.getIsActive();
	}

	/**
	* Returns <code>true</code> if this sms_ master is is active.
	*
	* @return <code>true</code> if this sms_ master is is active; <code>false</code> otherwise
	*/
	public boolean isIsActive() {
		return _sms_Master.isIsActive();
	}

	/**
	* Sets whether this sms_ master is is active.
	*
	* @param isActive the is active of this sms_ master
	*/
	public void setIsActive(boolean isActive) {
		_sms_Master.setIsActive(isActive);
	}

	/**
	* Returns the sms_chars_ size of this sms_ master.
	*
	* @return the sms_chars_ size of this sms_ master
	*/
	public int getSms_chars_Size() {
		return _sms_Master.getSms_chars_Size();
	}

	/**
	* Sets the sms_chars_ size of this sms_ master.
	*
	* @param Sms_chars_Size the sms_chars_ size of this sms_ master
	*/
	public void setSms_chars_Size(int Sms_chars_Size) {
		_sms_Master.setSms_chars_Size(Sms_chars_Size);
	}

	/**
	* Returns the field1 of this sms_ master.
	*
	* @return the field1 of this sms_ master
	*/
	public java.lang.String getField1() {
		return _sms_Master.getField1();
	}

	/**
	* Sets the field1 of this sms_ master.
	*
	* @param field1 the field1 of this sms_ master
	*/
	public void setField1(java.lang.String field1) {
		_sms_Master.setField1(field1);
	}

	/**
	* Returns the field2 of this sms_ master.
	*
	* @return the field2 of this sms_ master
	*/
	public boolean getField2() {
		return _sms_Master.getField2();
	}

	/**
	* Returns <code>true</code> if this sms_ master is field2.
	*
	* @return <code>true</code> if this sms_ master is field2; <code>false</code> otherwise
	*/
	public boolean isField2() {
		return _sms_Master.isField2();
	}

	/**
	* Sets whether this sms_ master is field2.
	*
	* @param field2 the field2 of this sms_ master
	*/
	public void setField2(boolean field2) {
		_sms_Master.setField2(field2);
	}

	/**
	* Returns the field3 of this sms_ master.
	*
	* @return the field3 of this sms_ master
	*/
	public int getField3() {
		return _sms_Master.getField3();
	}

	/**
	* Sets the field3 of this sms_ master.
	*
	* @param field3 the field3 of this sms_ master
	*/
	public void setField3(int field3) {
		_sms_Master.setField3(field3);
	}

	/**
	* Returns the field4 of this sms_ master.
	*
	* @return the field4 of this sms_ master
	*/
	public java.util.Date getField4() {
		return _sms_Master.getField4();
	}

	/**
	* Sets the field4 of this sms_ master.
	*
	* @param field4 the field4 of this sms_ master
	*/
	public void setField4(java.util.Date field4) {
		_sms_Master.setField4(field4);
	}

	/**
	* Returns the field5 of this sms_ master.
	*
	* @return the field5 of this sms_ master
	*/
	public java.lang.String getField5() {
		return _sms_Master.getField5();
	}

	/**
	* Sets the field5 of this sms_ master.
	*
	* @param field5 the field5 of this sms_ master
	*/
	public void setField5(java.lang.String field5) {
		_sms_Master.setField5(field5);
	}

	public boolean isNew() {
		return _sms_Master.isNew();
	}

	public void setNew(boolean n) {
		_sms_Master.setNew(n);
	}

	public boolean isCachedModel() {
		return _sms_Master.isCachedModel();
	}

	public void setCachedModel(boolean cachedModel) {
		_sms_Master.setCachedModel(cachedModel);
	}

	public boolean isEscapedModel() {
		return _sms_Master.isEscapedModel();
	}

	public java.io.Serializable getPrimaryKeyObj() {
		return _sms_Master.getPrimaryKeyObj();
	}

	public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
		_sms_Master.setPrimaryKeyObj(primaryKeyObj);
	}

	public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
		return _sms_Master.getExpandoBridge();
	}

	public void setExpandoBridgeAttributes(
		com.liferay.portal.service.ServiceContext serviceContext) {
		_sms_Master.setExpandoBridgeAttributes(serviceContext);
	}

	@Override
	public java.lang.Object clone() {
		return new Sms_MasterWrapper((Sms_Master)_sms_Master.clone());
	}

	public int compareTo(com.caresms.model.Sms_Master sms_Master) {
		return _sms_Master.compareTo(sms_Master);
	}

	@Override
	public int hashCode() {
		return _sms_Master.hashCode();
	}

	public com.liferay.portal.model.CacheModel<com.caresms.model.Sms_Master> toCacheModel() {
		return _sms_Master.toCacheModel();
	}

	public com.caresms.model.Sms_Master toEscapedModel() {
		return new Sms_MasterWrapper(_sms_Master.toEscapedModel());
	}

	@Override
	public java.lang.String toString() {
		return _sms_Master.toString();
	}

	public java.lang.String toXmlString() {
		return _sms_Master.toXmlString();
	}

	public void persist()
		throws com.liferay.portal.kernel.exception.SystemException {
		_sms_Master.persist();
	}

	/**
	 * @deprecated Renamed to {@link #getWrappedModel}
	 */
	public Sms_Master getWrappedSms_Master() {
		return _sms_Master;
	}

	public Sms_Master getWrappedModel() {
		return _sms_Master;
	}

	public void resetOriginalValues() {
		_sms_Master.resetOriginalValues();
	}

	private Sms_Master _sms_Master;
}